//
//  HLDataBaseManager.h
//  HLAerospace
//
//  Created by hulian-ios on 17/9/16.
//  Copyright © 2017年 hulian-LB. All rights reserved.
//

#import <Foundation/Foundation.h>

@class HLCollect,HLCourseDetail,HLCourse;

@interface HLDataBaseManager : NSObject

+ (void)removeHistoryRecord:(HLCollect *)collect;
+ (void)removeDownloadingFile:(HLCourseDetail *)courseDetail;
+ (void)removeDownloadedFile:(HLCourseDetail *)courseDetail;

+ (void)removeALLDownloadedFile;
+ (void)removeALLDownloadingFile;
+ (void)removeALLHistoryRecord;
+ (void)removeALLHomeDatas;

+ (void)addHistoryRecord:(HLCollect *)collect;
+ (void)addDownloadingFile:(HLCourseDetail *)courseDetail;
+ (void)addDownloadedFile:(HLCourseDetail *)courseDetail;

+ (void)updateDownloadingFile:(HLCourseDetail *)courseDetail;

/**** 主页数据缓存 ****/
+ (void)addHomeDataCourse:(HLCourse *)course type:(NSInteger)type;

+ (NSArray*)historyRecord:(NSInteger)page;
+ (NSArray*)downloadedFiles:(NSInteger)page;
+ (NSArray*)downloadingFiles:(NSInteger)page;

/**** 主页缓存数据 0热门课程 1推荐视频  ****/
+ (NSArray*)homeDataCourse:(NSInteger)type;

+ (BOOL)isHistoryRecord:(HLCollect *)collect;
+ (BOOL)isDownloadingFile:(HLCourseDetail *)courseDetail;
+ (BOOL)isDownloadedFile:(HLCourseDetail *)courseDetail;

@end

